<?php
namespace app\http\middleware;
return[
    'check'=>Check::class,
    'auth'=>auth::class,
    'log'=>Log::class
];

class Auth
{
    public function handle($request,\Closure $next){
        $request->auth = 'auth';
        return $next($request);
    }
}

class Log{
    public function handle($request,\Closure $next)
    {
        $request->log = 'hello';
        return $next($request);
    }
}

class Check
{
    public function handle($request,\Closure $next)
    {
        $request->check = 'check';
        return $next($request);
    }
}